package com.ruoyi.purchase.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class GenerateBoxCodeDTO {

    // GenerateBoxCodeDTO.java
        /** 采购订单号 */
        private String poId;

        /** 标箱数量 */
        private Long boxNum;

        /** 本次打码数量 */
        private Long codeNum;

        public Long getPoNum() {
                return poNum;
        }

        public void setPoNum(Long poNum) {
                this.poNum = poNum;
        }

        private Long poNum;

        public String getItemId() {
                return itemId;
        }

        public void setItemId(String itemId) {
                this.itemId = itemId;
        }

        /** 本次打码数量 */
        private String itemId;
        @Override
        public String toString() {
                return "GenerateBoxCodeDTO{" +
                        "poId='" + poId + '\'' +
                        ", boxNum=" + boxNum +
                        ", codeNum=" + codeNum +
                        ", poNum=" + poNum +
                        ", itemId=" + itemId +
                        ", productionDate=" + productionDate +
                        ", batch='" + batch + '\'' +
                        ", boxCount=" + boxCount +
                        ", uom='" + uom + '\'' +
                        ", notcodeNum=" + notcodeNum +
                        '}';
        }

        public String getPoId() {
                return poId;
        }

        public void setPoId(String poId) {
                this.poId = poId;
        }

        public Long getBoxNum() {
                return boxNum;
        }

        public void setBoxNum(Long boxNum) {
                this.boxNum = boxNum;
        }

        public Long getCodeNum() {
                return codeNum;
        }

        public void setCodeNum(Long codeNum) {
                this.codeNum = codeNum;
        }

        public Date getProductionDate() {
                return productionDate;
        }

        public void setProductionDate(Date productionDate) {
                this.productionDate = productionDate;
        }

        public String getBatch() {
                return batch;
        }

        public void setBatch(String batch) {
                this.batch = batch;
        }

        public Long getBoxCount() {
                return boxCount;
        }

        public void setBoxCount(Long boxCount) {
                this.boxCount = boxCount;
        }

        public String getUom() {
                return uom;
        }

        public void setUom(String uom) {
                this.uom = uom;
        }

        public Long getNotcodeNum() {
                return notcodeNum;
        }

        public void setNotcodeNum(Long notcodeNum) {
                this.notcodeNum = notcodeNum;
        }

        /** 生成日期 */
        @JsonFormat(pattern = "yyyy-MM-dd")
        private Date productionDate;

        /** 批次号 */
        private String batch;

        // 自动计算字段
        /** 箱数 */
        private Long boxCount;

        /** 计量单位 */
        private String uom;

        /** 未打码数量 */
        private Long notcodeNum;

}
